﻿//using System;
//using System.Collections.Generic;
//using System.Drawing;

//namespace Petra.Gis.Imaging
//{
//  public class TransformGdiPlus
//  {


//    public static void rotateImage()
//    {

//      Bitmap toRotate = new Bitmap(@"C:\temp\cit1.png");

//      //create a new empty bitmap to hold rotated image
//      Bitmap returnBitmap = new Bitmap(1200, 1200);
//      //make a graphics object from the empty bitmap
//      Graphics g = Graphics.FromImage(returnBitmap);
//      //move rotation point to center of image
//      g.TranslateTransform((float)toRotate.Width / 2, (float)toRotate.Height / 2);
//      //rotate
//      g.RotateTransform(45);
//      //move image back
//      g.TranslateTransform(-(float)toRotate.Width / 2, -(float)toRotate.Height / 2);
//      //draw passed in image onto graphics object
//      g.DrawImage(toRotate, new Point(0, 0));
//      //return returnBitmap;

//      returnBitmap.Save(@"C:\temp\cit1342.png", System.Drawing.Imaging.ImageFormat.Png);

//    }

//  }
//}
